Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 20, 2013, 05:44:53 am

Login with username, password and session length
Members
Total Members: 10808
Latest: smfhacks77
Stats
Total Posts: 32573
Total Topics: 5511
Online Today: 62
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 50
Total: 52
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
| | | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: 1 ... 9 10 [11] 12 13 ... 24 Go Down Print
Author Topic: SMF Links  (Read 221987 times)
doc-com
Inline PM Customer
*****
Offline Offline

Posts: 9



View Profile
« Reply #150 on: November 18, 2006, 10:08:54 pm »

Thanks SMFHacks

I sort of rough 'I love SMF' it ....



I copied this from the default Index.template.php

// the [links] button
   if ($context['allow_view_smflinks'])
      echo ($current_action == 'links' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="center" class="menubg' , $current_action == 'links' ? '2' : '' , '">
               <a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
            </td>' , $current_action == 'links' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' :
'';



and pasted into the Dilber Index.template.php 
then altered to match other Dilber menu items as such;

// the [links] button
   if ($context['allow_view_smflinks'])
      echo'
            <td align="center" class="menubg' , $current_action == 'links' ? '2' : '' , '">
            
               <a href="', $scripturl, '?action=links">' , $txt['smflinks_menu']  , '</a>
            </td>';



note: make sure to change <td valign to <td align to have text centered horizontally instead of vertically.

 

then added 'links' to this section

// Work out where we currently are.

   $current_action = 'home';

   if (in_array($context['current_action'], array('admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))

$current_action = 'admin';


   if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'links')))

      $current_action = $context['current_action'];

   if ($context['current_action'] == 'search2')

      $current_action = 'search';

   if ($context['current_action'] == 'theme')

      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';




anyhow, it seems to work ok, can you see any faults ?

.
« Last Edit: November 18, 2006, 11:09:33 pm by doc-com » Logged

Gigabyte MA790FX DS5 m/board + Athlon XP 2.8Ghz D/Core CPU + 2GB DDR2 RAM + Asus ATI HD2600 Pro 512MB video + 1 pata & 4 sata drives (2600 GB) + 2 DVD burners + 2 x 19" LCD monitors = My Website Workshop.
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #151 on: November 18, 2006, 11:01:44 pm »

That's the code looks good from what I see.
Logged
tambitch
Inline PM Customer
*****
Offline Offline

Posts: 9


View Profile
« Reply #152 on: November 20, 2006, 06:20:05 am »


Theres something wrong with the links.template.php i think.
The title of url-field is placed in the dropdown of categorie.
The url-field is out of the table

Go to Links.templete.php and search for:

Code:
$row['ID_CAT'] == $catid) ? 'selected="selected" ' : '') .' ">'

replace with:

Code:
$row['ID_CAT'] == $catid) ? 'selected="selected" ' : '') .'>'

There is an extra " in the optionmenu that throws off the display.
Logged
Rasyr
Inline PM Customer
*****
Offline Offline

Posts: 1


View Profile
« Reply #153 on: November 20, 2006, 07:18:01 am »

I really like this Mod, and so do my users, however, there are a few requests for changes/improvements coming in from them.

Several of my forum users wish that the Links manager would allow for links to be in multiple categories without having to enter the link multiple times.

Another request is some sort of control on it, so that folks cannot click on a link multiple times within a specified time frame (i.e. artificially increasing the # of visits count)

Top Five lists - another request came in from my users to allow for changing the number of links in the Visits and the Ratings lists, and to be able to paginate them when there are too many (i.e. they want to go through and be able to look at all of the links in order). -- Note: for this one, I just added a new sub-action which takes them to a page that shows all of the links in 2 lists (Rated and Hits). You can see this on my site at http://www.ironcrown.com/ICEforums





I told them that I would ask.....
Logged
stefanp
Inline PM Customer
*****
Offline Offline

Posts: 11


View Profile
« Reply #154 on: November 22, 2006, 07:44:54 am »

thx - with the above code the "add-links-form" rox now Wink
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #155 on: November 22, 2006, 08:26:46 am »

Thanks updated the mod with the fix.
Logged
Caspar107
Inline PM Customer
*****
Offline Offline

Posts: 12



View Profile WWW
« Reply #156 on: November 24, 2006, 07:31:57 am »

When I install it, I get the following error message

Code:
Fatal error: packageinstall() [function.require]: Failed opening required '/home/dutchmilli/domains/dutch-military.nl/public_html/schuuring/Packages/temp/./linksql.php' (include_path='.:/usr/local/lib/php') in /home/dutchmilli/domains/dutch-military.nl/public_html/schuuring/Sources/Packages.php on line 540
Logged
Caspar107
Inline PM Customer
*****
Offline Offline

Posts: 12



View Profile WWW
« Reply #157 on: November 24, 2006, 03:24:53 pm »

Never mind, forgot to chmod to 777
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #158 on: November 24, 2006, 09:13:56 pm »

Version 1.6
Sorting of links on link display.
Added new layout for the admin panel.
Separated settings, categories, category permissions and approve links to their own sections in the admin panel.
Added page listing to approve links.
Added category level permissions for adding, editing, deleting and viewing links.
Added settings to toggle what information is shown on link display
Added Subcategories
Started basic support for Alexa and PageRank still need to make the functions work.
Logged
Jump1979man
Sr. Member
****
Offline Offline

Posts: 274



View Profile WWW
« Reply #159 on: November 25, 2006, 01:26:59 pm »

If permissions are already set for each group do we still need to give permissions within the links mod itself?


when I checked the actual admin permissions it took away all my group permissions to only allow view links....

now what happens when I click them all again that I originally had set?


What has more power, the links permissions in the links mod or the admin permissions in the admin cp?

There are also many more options for permissions in the admin cp rather than just the 4 in the links mod permissions....why?
« Last Edit: November 25, 2006, 01:34:23 pm by Jump1979man » Logged

Midwest Motorcycles Forum
http://www.mwmotorcycles.com

Riverway Racing
https://www.riverwayracing.com
Motorcycle parts, gear, and accessories.
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #160 on: November 25, 2006, 01:34:37 pm »

You do not need reset the permissions. The category permissions are if you want to disable a global permission on a category level.
Logged
doc-com
Inline PM Customer
*****
Offline Offline

Posts: 9



View Profile
« Reply #161 on: November 25, 2006, 06:36:16 pm »

Hi,
 just installed SMF Links 1.5 last week into Dilber MC theme

V 1.6 sounds good, sub-categories and sorting display is just what we need - good work people...


Anywhow, I've uploaded 1.6 to our forum, but it recommends I uninstall the old version or get an upgrade version to install?

If I uninstall 1.5, do we lose the existing links?

Whats the best way to upgrade to 1.6
Logged

Gigabyte MA790FX DS5 m/board + Athlon XP 2.8Ghz D/Core CPU + 2GB DDR2 RAM + Asus ATI HD2600 Pro 512MB video + 1 pata & 4 sata drives (2600 GB) + 2 DVD burners + 2 x 19" LCD monitors = My Website Workshop.
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #162 on: November 25, 2006, 06:37:56 pm »

I would unstiall since new tables are created and tables altered.

All links and information will remain if you unistall the old version so you are safe.
Logged
doc-com
Inline PM Customer
*****
Offline Offline

Posts: 9



View Profile
« Reply #163 on: November 25, 2006, 07:47:43 pm »

Thanks SMF Hacks,
1.6 works a treat - I'm sure the members will love it too  Grin

one problem I just noticed; when I log out and visit as a guest, i'm unable to view any links in the categories, just get this message
Quote
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.

This is despite having approval in membergroup permissions; I've added the link category permissions and that makes no difference, guest still can't view or add links.

I also changed theme back to default, but problem still exists

« Last Edit: November 25, 2006, 08:53:49 pm by doc-com » Logged

Gigabyte MA790FX DS5 m/board + Athlon XP 2.8Ghz D/Core CPU + 2GB DDR2 RAM + Asus ATI HD2600 Pro 512MB video + 1 pata & 4 sata drives (2600 GB) + 2 DVD burners + 2 x 19" LCD monitors = My Website Workshop.
Jump1979man
Sr. Member
****
Offline Offline

Posts: 274



View Profile WWW
« Reply #164 on: November 25, 2006, 11:49:36 pm »

yep....

Quote
Database Error
Please try again. If you come back to this error screen, report the error to an administrator. 


me too.....something is wrong with the mod.
Logged

Midwest Motorcycles Forum
http://www.mwmotorcycles.com

Riverway Racing
https://www.riverwayracing.com
Motorcycle parts, gear, and accessories.
Pages: 1 ... 9 10 [11] 12 13 ... 24 Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 04:49:39 am]

[Today at 03:53:19 am]

[Today at 03:49:43 am]

[Today at 02:05:58 am]

[Today at 02:02:45 am]

[June 19, 2013, 10:08:41 pm]

[June 19, 2013, 07:25:45 pm]

[June 19, 2013, 01:36:26 pm]

[June 18, 2013, 07:27:33 am]

[June 17, 2013, 12:27:50 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.242 seconds with 22 queries.