Quote:
Originally Posted by NeverBored
I found a small error... When you view a users profile, the next/previous links to the pages with their videos takes you back to the main video pages, the links are missing the variables for the specific user.
|
Here is how I fixed that on my site:
Open vBTube/includes/user.php.
On line 69 find this:
Change it to this:
PHP Code:
if ($pages != 1) { $pre = ' <b>«</b> <a href="vBTube.php?page='.$previous.'&do=user&uname='.$uname.'">previous</a>'; }
Find this:
PHP Code:
if ($pages < $totalpages) { $nex = ' <a href="vBTube.php?page='.$next.'" >next</a> <b>»</b> '; }
Change it to this:
PHP Code:
if ($pages < $totalpages) { $nex = ' <a href="vBTube.php?page='.$next.'&do=user&uname='.$uname.'" >next</a> <b>»</b> '; }
Find this:
PHP Code:
$cur .= ' <a href="vBTube.php?page='.$tmp.'" ><strong>'.$tmp.'</strong></a>';
Change it to this:
PHP Code:
$cur .= ' <a href="vBTube.php?page='.$tmp.'&do=user&uname='.$uname.'" ><strong>'.$tmp.'</strong></a>';
Find this:
PHP Code:
$cur .= ' <a href="vBTube.php?page='.$tmp.'" >'.$tmp.'</a>';
Change it to this:
PHP Code:
$cur .= ' <a href="vBTube.php?page='.$tmp.'&do=user&uname='.$uname.'" >'.$tmp.'</a>';
You can see my edits in action at
http://www.defend.net/deluxeforums/vBTube.php
Hope that helps,
Tim