1) I need to change what the text link says though, it should read something like "Vote for *User Site* on Social Media Sun Best List" Instead of just my list title.
For now its properbly the best to change the core.
Ill make sure to add an admin setting for 0.7 Beta which lets you specify that message. After the upgrade to 0.7 you would need to enter it then in admin, as the core change will be lost then
Look up the following in sources/user_cp/link_code.php
Code:
if($CONF['text_link'] == 1) {
$TMPL['link_code_content'] .= <<<EndHTML
<br />
Preview: <a href="{$TMPL['list_url']}/{$TMPL['verbose_link']}">{$TMPL['list_name']}<img src="{$TMPL['list_url']}/button.php?u={$TMPL['site']}&buttontype=text" alt="{$TMPL['list_name']}" border="0" style="display: none;" width="1px" height="1px"/></a>
<br />
<textarea readonly="readonly" name="code" rows="6" style="width: 100%;" onclick="select_all();"><a href="{$TMPL['list_url']}/{$TMPL['verbose_link']}">{$TMPL['list_name']}<img src="{$TMPL['list_url']}/button.php?u={$TMPL['site']}" alt="{$TMPL['list_name']}" style="display: none;" width="1px" height="1px" /></a></textarea>
<hr />
EndHTML;
}
In there you see {$TMPL['list_name']} That is what you would need to change for now.
If you scroll down a little you will also find the img alt codes which use the same tag
Also, I would like to offer more options. I would like to offer the Google friendly list for the actual website, but the other type with the username directly in the link for users to copy from the control panel and share as a message on Twitter. "Vote for my site on the SMS Top 100
http://socialmediasun.com/best/index.php?a=in&u=etelligence " so basically add another option to Link Code. "Share on Twitter and Facebook" option.
This is best handled via a simple plugin, until we code something into the core or make a real complete plugin with admin integration.
Will Pm you something later today which you can use until then
2) I need to know the Div names to add CSS to the user.css file. I don't like using jquery, but I want to change the colors of the menu bar, in the table where there is navigation the color of ranking method, categories and newest members, the profile score bar, basically everything that is blue on all the pages a user can possibly access. I'd really also like to add a header to all the pages. Another menu, and maybe some other objects so I can integrate the top sites with my domain's blog more. Is there a way to display the top users on another page? Maybe a java snippet, wordpress plugin?
- For css changes simply simply look up the corresponding div in the html files. Or chrome has a nice right click -> search in element.
- The ucp score uses jquery, same as the join, edit form.
See here ->
http://visiolist.com/community/threads/theme-developement-tips-tricks.174/
Roll a jquery theme which match your skin, or remove it. If remove, simply style it with css ( see above )
- Adding headers, other blocks simply alter your files, especially wrapper.html ( main layout )
For top users on another page there are multiple choices.
first off ssi_top.html, ssi_top_row.html for the style.
On same domain
- php include call to site.com/topsite/ssi.php
On the topsite itself, in the stats.html template for example
Code:
{include "{$list_url}/ssi.php"}
Then on an external page
- calling iframe to site.com/topsite/ssi.php
- making an curl request in your php file
Code:
$ch = curl_init();
$top_url= "http://site.com/ssi.php";
curl_setopt($ch, CURLOPT_URL,$top_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$show_toplist = curl_exec($ch);
curl_close($ch);
echo $show_toplist;
Whereever you place the echo $show_toplist in your external script, it will output top 5 members
More or less members = site.com/ssi.php?num=10