If i understand correctly you would like to make a link page for each member ?mykee wrote:Fantastic mod, but how can change this to per members? I think can change this mod to members favorite links, not global. When log in a user, can view his/her favorite links.
Im at work now so unable to do so till tomorrow.. (machines are tied down! and they have now disabled the USB ports so my portable drive with portable apps is no more! spoil sports!)DoYouSpeakWak wrote:maybe its a language code that has to be changed from "links" to offers instead. its very simple to find were the error could be, just open all files you have edited and uploaded when adding the link page mod. all files in the install.xml and subsilver2.xml if you did thoose. Search all of them for the word "Links" and/or link. After a few mins you should have the old language value you forgot to change. I will make a guide for this and add it somewere..
DYSW
Code: Select all
case 'links':
if (!$auth->acl_gets('u_linkspage_mod'))
{
trigger_error('NO_VIEW_LINKS_MOD');
}
$l_title = $user->lang['LINKS_PAGE'];
$user->add_lang('mods/links_page', false, true);
break;
Code: Select all
'LINKS_PAGE' => 'Recommended links',
'LINKS' => 'Links',
Code: Select all
<!-- IF S_HIDE_LINKSMOD --><li class="icon-links"><a href="{U_LINKS}" title="{L_LINKS_PAGE}">{L_LINKS}</a></li><!-- ENDIF -->
As always thankyou so much, i found the issue! i was an idiot, because i had it set up on the old version, when i updated to the newer version I re-did the edits. but those edits that had not changed i left.. My error being that original install i called it member_offer and on the upgrade when making the changes i just called it offers..DoYouSpeakWak wrote:I have just made a guide for it, but it has to be put in the next update. It would be to many code boxes here in the topic.
But the tittle problem should be easy to fix.
find. The l_title part are connected to the language value in the common.php file.In this mod it looks like this.Code: Select all
case 'links': if (!$auth->acl_gets('u_linkspage_mod')) { trigger_error('NO_VIEW_LINKS_MOD'); } $l_title = $user->lang['LINKS_PAGE']; $user->add_lang('mods/links_page', false, true); break;
Change the 'LINKS_PAGE' to whatever your like with the "" around it.Code: Select all
'LINKS_PAGE' => 'Recommended links', 'LINKS' => 'Links',
3rd thing to make sure is right concerning the title are the overall_header.html
look at the org code
The title="{L_LINKS_PAGE}"> has to match the LINKS_PAGE line in common.phpCode: Select all
<!-- IF S_HIDE_LINKSMOD --><li class="icon-links"><a href="{U_LINKS}" title="{L_LINKS_PAGE}">{L_LINKS}</a></li><!-- ENDIF -->
i hope it helps.