Webmastersite.net
Register Log In

How can you import tags?

Comments on How can you import tags?

Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Jul 06, 2009 - 10: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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 06, 2009 - 8: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 Comments: 54
Posted Jul 07, 2009 - 10:17 AM:

Sounds good to me
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 07, 2009 - 12:36 PM:

Payment options: 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.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Jul 12, 2009 - 12:12 PM:

Ok, sent payment
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Jul 12, 2009 - 12:59 PM:

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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 12, 2009 - 7: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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 12, 2009 - 7: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 Comments: 54
Posted Jul 13, 2009 - 9:23 AM:

yes, exactly.



and thnx for the tag import plugin!
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Jul 14, 2009 - 6:42 PM:

Take the toplist in your main index template for example:
<form action="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 Comments: 54
#11 - Quote - Permalink
Posted Jul 20, 2009 - 10: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
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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