WebmasterSite.net

How can you import tags?

Version: 5.0.54
URL:

PrintPrint


How can you import tags?
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #1
Posted 07/06/09 - 7:31 AM:

Im using the "import flat file" feature, and I was wondering if there is a way that I can import a list of tags for each link?
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 07/06/09 - 5:13 PM:

Not currently, though I could add it in as a custom project for $25.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #3
Posted 07/07/09 - 7:17 AM:

Sounds good to me
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 07/07/09 - 9:36 AM:

Payment options: http://scripts.webmastersite.net/w...section=payamount&price=25

I can get it into the next release by the end of the week.

A comma-separated list of tags would be the most obvious format, but that'd be a problem for someone doing a CSV import, since commas separate fields there. I guess I'll default to a pipe (|) and add a tweak to allow changing it.

Edited by Paul on 07/07/09 - 9:41 AM
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #5
Posted 07/12/09 - 9:12 AM:

Ok, sent payment
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #6
Posted 07/12/09 - 9:59 AM:

Also, is there anyway to get the sort options to work for a toplist?
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #7
Posted 07/12/09 - 4:04 PM:

Upload the attached file to /admin/, and use | as your separator between tags (or change the separator with $tagsplitchar in tweaks.php).

Attached Files:
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #8
Posted 07/12/09 - 4:05 PM:

Orbitalz wrote:
Also, is there anyway to get the sort options to work for a toplist?


Please describe. Are you talking about overriding the normal order with a user-selected sort?
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #9
Posted 07/13/09 - 6:23 AM:

yes, exactly.



and thnx for the tag import plugin!

Edited by Orbitalz on 07/13/09 - 6:41 AM
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7614
quote post #10
Posted 07/14/09 - 3:42 PM:

Take the toplist in your main index template for example:
<form action="http://www.webmastersite.net/forums/index.php" style="margin: 0px; padding: 0px;">
<div class="box">
<div class="boxtitle" onclick="minmax('topbox')"><img src="{IMAGESURL}/icon_show.gif" alt="show" /> Top {TOPLISTTOTAL1} Links</div>
<div class="boxbody" id="topbox">
Show
<select name="number[1]">
<option value="5">5</option>
<option value="10">10</option>
<option value="15">15</option>
</select>
<select name="thefield[1]">
<option value="time">newest</option>
<option value="rating">top rated</option>
<option value="hits">most visited</option>
</select>
<input type="submit" value="Go" class="button" />
<br />
<!-- BEGIN TOPLIST 1 -->
<CONFIG>links,time,5,descending</CONFIG>
{NUMBER}. <a href="{TRACKLINKURL}" class="newlinks" {EXTERNALLINKS}>{LINKTITLE}</a> {LINKADMIN}
<br />
<!-- END TOPLIST 1 -->
</div>
</div>
</form>


To add an alphabetical option, add
<option value="title">alphabetically</option>
in the number[1] selector. To do allow ascending/descending selection add
<select name="order[1]">
<option value="asc">ascending</option>
<option value="desc">descending</option>
</select>
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Posts: 52
quote post #11
Posted 07/20/09 - 7:16 AM:

thnx, I couldnt get it to work. but its ok. Ive decided to go a different route
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.