Link errors in Welcome Block
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies
View previous topic :: View next topic  
Author Message
Ack
Starter
Starter


Joined: 19 Sep 2004
Posts: 4
Location: Charlotte, NC

PostPosted: Fri Feb 04, 2005 8:43 pm    Post subject: Link errors in Welcome Block Reply with quote

I have the Tiinies : ViewTopic block set on page 17, and I have the Welcome BLock option set to 17.

When I pass the mouse over View unread posts (0) and Topics you've started the link says http://www.ackadia.org/mx/index.php?page=1 not page 17.

The View latest: 24h 48h 72h link is correct, http://www.ackadia.org/mx/index.php?page=17&report_id=24h

Any Ideas?
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Feb 05, 2005 12:54 am    Post subject: Re: Link errors in Welcome Block Reply with quote

Really, strange. The same parameter is used to build the links in the same way.

The parameter is read in this line:
Code:
$report_page = intval($block_config[$block_id]['Tinies_Report_Page']['parameter_value']);


Then the common part of all those links is built based on the value of the parameter, in the following lines:
Code:
if( $report_page == 0 )
{
   $u_view_topics = $module_root_path.'view_topics.'.$phpEx.'?report_id=';
}
else
{
   $u_view_topics = 'index.'.$phpEx.'?page='.$report_page.'&report_id=';
}


Finally, the links are completed and passed on to the template for output like this:
Code:
   'U_SEARCH_UNREAD'      => append_sid(PORTAL_URL.$u_view_topics.'unread'),
   'U_SEARCH_LATEST_24'   => append_sid(PORTAL_URL.$u_view_topics.'24h'),
   'U_SEARCH_LATEST_48'   => append_sid(PORTAL_URL.$u_view_topics.'48h'),
   'U_SEARCH_LATEST_72'   => append_sid(PORTAL_URL.$u_view_topics.'72h'),
   'U_SEARCH_SELF_TOPICS' => append_sid(PORTAL_URL.$u_view_topics.'egostarted'),

$u_view_topics is used to build all those links.


Do you have a test account so I can see the HTML generated for the "View unread" and the other links?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Ack
Starter
Starter


Joined: 19 Sep 2004
Posts: 4
Location: Charlotte, NC

PostPosted: Sat Feb 05, 2005 7:17 am    Post subject: Re: Link errors in Welcome Block Reply with quote

test account details sent in a PM.

Thanks
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Feb 05, 2005 4:07 pm    Post subject: Re: Link errors in Welcome Block Reply with quote

hmmm.... the links to "unread posts" and "your own topics" are empty. ie. the href is set to "".

Maybe this is a problem related to templates. Maybe another block in the same page or something is overriding the links from the template....

There's something to test this...

1) Open modules/mx_tinies/welcome.php and change the following lines:
Code:
'U_SEARCH_UNREAD'      => append_sid(PORTAL_URL.$u_view_topics.'unread'),

'U_SEARCH_SELF_TOPICS' => append_sid(PORTAL_URL.$u_view_topics.'egostarted'),

...to something like:
Code:
'U_SEARCH_UNREAD_X'      => append_sid(PORTAL_URL.$u_view_topics.'unread'),

'U_SEARCH_SELF_TOPICS_X' => append_sid(PORTAL_URL.$u_view_topics.'egostarted'),


2) Open modules/mx_tinies/templates/welcome_body.tpl and change the strings:
{U_SEARCH_UNREAD} and {U_SEARCH_SELF_TOPICS} by
{U_SEARCH_UNREAD_X} and {U_SEARCH_SELF_TOPICS_X} respectively.


Strange, isn't it?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Ack
Starter
Starter


Joined: 19 Sep 2004
Posts: 4
Location: Charlotte, NC

PostPosted: Sat Feb 05, 2005 5:14 pm    Post subject: Re: Link errors in Welcome Block Reply with quote

Found the problem - my code was not quite the same as your. I had this for those 2 lines. Not sure why it was different. I am sure I did not change it.

Code:
'U_SEARCH_UNREAD'        => $u_unread,
'U_SEARCH_SELF_TOPICS'    => $u_egostarted,


ended up changing to
Code:
'U_SEARCH_UNREAD'      => append_sid($u_view_topics.'unread'),
'U_SEARCH_SELF_TOPICS' => append_sid($u_view_topics.'egostarted'),


I had to take the PORTAL_URL. out of both your lines.

Thanks for your help
 
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum