Well the error was from a wrong variable, so I took it out and put everything back to normal. I just want to take the admin/mod tools from the footer and add them to the header on the same pages the're already on. I know it will take some work and might seem pointless, but anything is worth the trouble as long as it makes it different than most forum designs. I'm a designer so I try to make things look functional as well. So what am I going to have to change then? I can modify it but I don't really know which variables to change. I guess i'll give it a try again and see what happens.
1 2006-06-30 19:30
Re: moving moderator footer links to header (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2006-06-30 01:27
Re: moving moderator footer links to header (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
So is there nothing I can do besides wait for a newer version to come out?
3 2006-06-29 21:26
Topic: moving moderator footer links to header (6 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I searched for something like this on here and punres.org first, and didn't find anything. I hope this is in the right category also.
What I wanted to do is move the admin/moderator tool links from the footer, to the header or underneath it somewhere. Everytime I try to modify those links to the header I have some kind of error, so I end up putting everything back to normal. I'm not great with PHP, but I can modify and understand some of it. I think it's the fact that the links in the footer call the $footer_style to change the links on those specific pages. The code in question that I want added to the header is below. Any help would be great on this. Thanks in advance.
if ($footer_style == 'viewforum' && $is_admmod)
echo "\t\t\t".'<p id="modcontrols"><a href="moderate.php?fid='.$forum_id.'&p='.$p.'">'.$lang_common['Moderate forum'].'</a></p>'."\n";
else if ($footer_style == 'viewtopic' && $is_admmod) {
echo "\t\t\t".'<dl id="modcontrols"><dt><strong>'.$lang_topic['Mod controls'].'</strong></dt><dd><a href="moderate.php?fid='.$forum_id.'&tid='.$id.'&p='.$p.'">'.$lang_common['Delete posts'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&move_topics='.$id.'">'.$lang_common['Move topic'].'</a></dd>'."\n";
if ($cur_topic['closed'] == '1')
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&open='.$id.'">'.$lang_common['Open topic'].'</a></dd>'."\n";
else
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&close='.$id.'">'.$lang_common['Close topic'].'</a></dd>'."\n";
if ($cur_topic['sticky'] == '1')
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
else
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd></dl>'."\n";
}
echo "\t\t\t".'</div>'."\n";
} ?>