"admin added" in description

italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

"admin added" in description

Post by italkcafe »

Hello,

When I use 'import set' for redtube, it puts 'admin added' in description field. Is there anyway to stop this?

Thanks,
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: "admin added" in description

Post by admin »

Yes, add 'description' in import set and it will add it
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: "admin added" in description

Post by italkcafe »

there is no description field in redtube export, how can we include/set it?
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: "admin added" in description

Post by admin »

Is there's no descrioption in the feed what are you going to add ?
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: "admin added" in description

Post by italkcafe »

I just want to keep it blank, without "admin added" text.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: "admin added" in description

Post by admin »

We need at least something to create slugs
You can replace this text in rotation settings
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: "admin added" in description

Post by italkcafe »

I created replacement in import set but it didn't work (maybe it couldn't search for 'admin added' in description to do the replacement).

I've changed the template as below as a workaround:

From:
<h2><!--DESCRIPTION--></h2>

To:
<h2><?php echo str_replace($item['description'],'admin added',''); ?></h2>
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: "admin added" in description

Post by admin »

1. Import Replacements don't affect existing galleries
2. this won't always work as the script does not load $item variable for cached pages

I think a good approach here is to

1. replace existing 'admin added' in DB or list thumbs- massedit
2. change rotation settings
Don't forget to run script update
italkcafe
Posts: 22
Joined: Thu Dec 05, 2013 10:28 am

Re: "admin added" in description

Post by italkcafe »

On 13 July I mass edited all the description. Then added replacement as below:

=> If in description has 'admin added' then search for 'admin added' in description and replaced it by '' (blank).

On 14 July, all new imported thumbs still have 'admin added' in description. So the replacement obviously does not work.
admin
Site Admin
Posts: 37994
Joined: Wed Sep 10, 2008 11:43 am

Re: "admin added" in description

Post by admin »

Did you change rotation - settings

<b>Empty Desc Replacement</b><br>
New rotation uses mod_rewrite. To ensure everything's ok all galleries must have description.<br>
If galleries don't have description script will replace it with following text.


?
Don't forget to run script update
Post Reply